import InternalFoldBox from './foldBox'
import FoldBoxGroup from './group'
import type * as React from 'react'
import type { FoldBoxProps } from './interface'

type CompoundedComponent = React.ForwardRefExoticComponent<
    FoldBoxProps & React.RefAttributes<HTMLElement>
> & {
    Group: typeof FoldBoxGroup
}

const FoldBox = InternalFoldBox as CompoundedComponent

FoldBox.Group = FoldBoxGroup

export default FoldBox
